<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="css/style.css" type="text/css" rel="stylesheet">
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/login.js"></script>
<title>Insert title here</title>



</head>
<body style="overflow: hidden; background-color: #EEE;">
	<%
                //获取验证消息
		request.setCharacterEncoding("UTF-8");
		String message = (String)request.getAttribute("message");
	%>
	<div
		style="background: url(images/background.jpg) no-repeat center; min-height: 100%; margin: 0 auto;_height:1000px;">
		<div style="text-align: center; padding-top: 10%; height: 226px;margin: 0 auto;position: relative;width: 806px;">
			<span style="position: absolute;padding-top: 70px;font-weight: bold;right:35px;">Version 1.0</span>
			<img src="images/headpic.png" width="806px" height="228px"/>
		</div>
		<div>
		<form  action="loginController.jsp" method="post" id="myform">
				<table class="login" cellSpacing="0" cellPadding="0" border="0"
					style="background: url(images/login_bg.png) repeat-x center; margin: 0 auto; height: 150px; width: 806px;">
					<tr style="height:35px;">
						<td colspan=4></td>
					</tr>
					<tr class="h30">
						<td class="w200"></td>
						<td style="width: 85px; color: #3862AA; font-weight: bold;font-size: 14px;">Username:</td>
						<td class="w200"><input class="txt" name="loginName" id="loginName" value='<%=request.getParameter("loginName")==null?"":request.getParameter("loginName")%>'
							tabindex=1 onKeyPress= 'if(event.keyCode==13) submit()' onKeyDown= 'if(event.keyCode==13) submit()'></td>
						<td rowspan=2><a tabindex=4 class="loginsubmitbg"
							onClick="loginsubmit();return false;"></a></td>
					</tr>
					<tr class="h30">
						<td></td>
						<td style="color: #3862AA; font-weight: bold;font-size: 14px;">Password:</td>
						<td><input class="txt" type="password" name="password"
							id="password" tabindex=2 onKeyPress= 'if(event.keyCode==13) submit()' onKeyDown= 'if(event.keyCode==13) submit()'></td>
					</tr>
					<tr style="height:55px;">
						<td colspan=4><div id="t-error" class="t-error"><%=message != null && !message.equals("")?message:"" %></div></td>
					</tr>
				</table>
				</form>
		</div>
		<div>
			<table class="login" cellSpacing="0" cellPadding="0"
				style="margin: 0 auto; width: 806px;">
				<tr>
					<td
						style="text-align: right; padding-right: 20px; padding-top: 20px; font-size: 12px; color: #8A8B86;">
						Copyright Â© 2014 Omnivision.</td>
				</tr>
			</table>
		</div>
	</div>



	<script language="javascript">
		document.getElementById('loginName').focus();
	</script>
	
	
	<!-- foot begin-->
	<!-- foot begin-->
</body>
</html>